package com.shanzmoo.db.module.product.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shanzmoo.db.module.product.domain.query.ProductQueryVO;
import com.shanzmoo.db.module.product.domain.vo.ProductVO;
import com.shanzmoo.db.module.product.entity.ProductSpuEntity;
import com.shanzmoo.db.module.product.mapper.ProductSpuMapper;
import com.shanzmoo.db.module.product.service.IProductSpuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品spu 服务实现类
 * </p>
 *
 * @author xueqz
 * @since 2021-04-13
 */
@Service
public class ProductSpuServiceImpl extends ServiceImpl<ProductSpuMapper, ProductSpuEntity> implements IProductSpuService {

    @Override
    public IPage<ProductVO> getSpuList(ProductQueryVO productQueryVO) {

        return baseMapper.getSpuList(productQueryVO.page(),productQueryVO);
    }

    @Override
    public void flagWaitDeleteSku(Integer id, List<Integer> productNoList) {
        baseMapper.flagWaitDeleteSku(id, productNoList);
    }
}
